package UpoopDemo.demo3;

public class test {
    public static void main(String[] args){
        // 创建对象并调用
        Manager m = new Manager("满11","里斯",19,30);
        System.out.println(m.getId() + ", " + m.getName() + ", " + 
                            m.getSalary() + ", " + m.getManageSalary());
        m.work();
        m.eat();
    
        Cook c = new Cook();

        c.setId("sjs");
        c.setName("王五");
        c.setSalary((1001));
        System.out.println(c.getId() + ", " + c.getName() + ", " + c.getSalary());
        c.work();
        c.eat();
    }
}
